package com.example.leetcode.stack;

import com.example.leetcode.stack.common.StackUtils;

class Solution769 {
    public int maxChunksToSorted(int[] arr) {
        return StackUtils.maxChunksToSorted(arr);
    }
}

public class leetcode769 {
    public static void main(String[] args) {
        Solution769 solution769 = new Solution769();
        int[] arr = {1, 0, 2, 3, 4};
        System.out.println(solution769.maxChunksToSorted(arr));
    }
}
